package com.jp.knowledge.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by jiayen on 16/12/30.
 *
 * 文档对象bean
 */

public class DocBean implements Parcelable {
    private String baiduCode;

    private String host;
    private String token;

    private String format;

    private String pdfUrl;
    public String getBaiduCode() {
        return baiduCode;
    }

    public void setBaiduCode(String baiduCode) {
        this.baiduCode = baiduCode;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public String getFormat() {
        return format;
    }

    public void setFormat(String format) {
        this.format = format;
    }

    public String getPdfUrl() {
        return pdfUrl;
    }

    public void setPdfUrl(String pdfUrl) {
        this.pdfUrl = pdfUrl;
    }

    public DocBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.baiduCode);
        dest.writeString(this.host);
        dest.writeString(this.token);
        dest.writeString(this.format);
        dest.writeString(this.pdfUrl);
    }

    protected DocBean(Parcel in) {
        this.baiduCode = in.readString();
        this.host = in.readString();
        this.token = in.readString();
        this.format = in.readString();
        this.pdfUrl = in.readString();
    }

    public static final Creator<DocBean> CREATOR = new Creator<DocBean>() {
        @Override
        public DocBean createFromParcel(Parcel source) {
            return new DocBean(source);
        }

        @Override
        public DocBean[] newArray(int size) {
            return new DocBean[size];
        }
    };
}
